package com.bridgeintelligent.tag.webserver.dim.query.api;

import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

@Data
@Accessors(chain=true)
@RequiredArgsConstructor(staticName = "of")
public class ThemeDetailResult {

    //返回码
    private int code;
    //返回数据
    private R data;
    //信息
    private String msg;

    private List<String> fields;

    private Map<String,String> fieldsMap;

    private int totalCount;

    @Data
    @Accessors(chain=true)
    @RequiredArgsConstructor(staticName = "of")
    public static class R {
        //内容
        private List<Map<String, String>> content;
        //总页数
        private Integer totalPage;
        //总条数
        private Long totalElements;
        //每页大小
        private Integer size;
    }
}
